package com.yykj.user.center.server.controller;

import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ImportParams;
import cn.afterturn.easypoi.excel.entity.result.ExcelImportResult;
import com.yykj.base.client.feign.BaseFeignClient;
import com.yykj.common.vo.ResultVO;
import com.yykj.hospital.client.dto.HospitalDTO;
import com.yykj.hospital.client.feign.HospitalServerFeignClient;
import com.yykj.user.center.server.form.UserLoginForm;
import com.yykj.user.center.server.service.DoctorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by chendg
 * on 2021/9/10 0010.
 */
@Api(tags = "医生相关接口")
@RestController
@RequestMapping("/api/doctor")
@SuppressWarnings("unchecked")
@Slf4j
public class DoctorController {


    @PostMapping("/login")
    @ApiOperation("登录")
    public ResultVO login(@RequestBody UserLoginForm form){
        return ResultVO.success(doctorService.login(form));
    }

    private DoctorService doctorService;

    @Autowired
    public void setDoctorService(DoctorService doctorService) {
        this.doctorService = doctorService;
    }
}
